package goluapack;
//interface

class student
{
	int rollnum;
	void getnumber(int n)
	{
		rollnum = n;
	}
	void putnumber()
	{
		System.out.println("Roll Number"+rollnum);
	}
}

class test extends student
{
	float part1,part2;
	void getmark(float p,float q)
	{
		part1 = p;
		part2 = q;
	}
	
	void putmark()
	{
		System.out.println("Mark part1"+part1);
		System.out.println("Mark part2"+part2);
	}
	
}

interface sport
{
	float sportwt = 0.5f;
	void putwt();
}

class result extends test implements sport
{
	float total;
	public void putwt()
	{
		System.out.println("sport weight"+sportwt);
	}
	
	void display()
	{
		total = part1 + part2 + sportwt;
		putnumber();
		putmark();
		putwt();
		System.out.println("Total"+total);
	}
}
public class Program27 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
       result res1 = new result();
       res1.getnumber(1234);
       res1.getmark(23.5f, 35.2f);
       res1.display();
	}

}
